using System;
using System.Collections.Generic;
using System.Text;

using System.Data;
using Husb.Data;
using Husb.Util;
using CentralOffice.Task.Data;
using CentralOffice.Task.DataAccess;
using ProgressTable = CentralOffice.Task.Data.TaskProgressDataSet.TaskProgressDataTable;
using ProgressRow = CentralOffice.Task.Data.TaskProgressDataSet.TaskProgressRow;

using HistoryTable = CentralOffice.Task.Data.TaskHistoryDataSet.TaskHistoryDataTable;
using HistoryRow = CentralOffice.Task.Data.TaskHistoryDataSet.TaskHistoryRow;


namespace CentralOffice.Task.BusinessActions
{
    public class TaskProgress : DataAccessManager<TaskProgressDataSet, ProgressTable, ProgressRow, TaskProgressAdapter>
    {
        public static bool Update(TaskProgressDataSet progressDataSet, TaskHistoryDataSet historyDataSet)
        {
            return UpdateSelfAndDetail<TaskHistoryAdapter, TaskHistoryDataSet, HistoryTable, HistoryRow>(progressDataSet, historyDataSet, true, false, null);
        }

        //public static bool Update(TaskProgressDataSet progressDataSet, TaskHistoryDataSet historyDataSet)
        //{
        //    return UpdateSelfAndDetail<TaskHistoryAdapter, TaskHistoryDataSet, HistoryTable, HistoryRow>(progressDataSet, historyDataSet, true, false, null);
        //}
    }
}
